package com.kh.statistics.video.utils;

import org.openqa.selenium.WebDriver;

import java.util.concurrent.TimeUnit;

public class WebDriverUtils {

    public static void setTimeOut(WebDriver driver, int timeout, TimeUnit timeUnit) {
        driver.manage().timeouts().pageLoadTimeout(timeout, timeUnit);
        driver.manage().timeouts().implicitlyWait(timeout, timeUnit);
        driver.manage().timeouts().setScriptTimeout(timeout, timeUnit);
    }
}
